import http from '@/axios/index.js'

// 查询权限树
export const querySelectReq = () => {
    return http.get('/sys/perm/query/select');
}

// 添加权限
export const addReq = (data) => {
    return http.post('/sys/perm/add',data);
}

// 修改权限
export const updateReq = (data) => {
    return http.put('/sys/perm/update',data);
}


// 删除权限
export const deleteReq = (id) => {
    return http.delete('/sys/perm/delete/'+id);
}